#include <string.h>
int main()
{
  char s[] = "cmd  params \r\n cmd2 parms2";
  const char * d = " \r\n";
  char * r;
  r = strtok(s,d);
  while(r) {
    printf("%s\n",r);
    r = strtok(NULL, d);
  }
}
